﻿using System;
using System.Collections.Generic;
using System.Text;
using SqlSugar;

namespace YL.Core.Entity
{
    /// <summary>
    /// 
    /// </summary>
    [SugarTable("whr_student")]
    public class Whr_student
    {
        public Whr_student() 
        {
        }
        
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable: False
        /// </summary>
        [SugarColumn(IsPrimaryKey = true,IsIdentity = true, ColumnName = "id")]
        public int StudentId { get; set; }

        [SugarColumn(ColumnName = "user_id")]
        public int UserId { get; set; }

        [SugarColumn(ColumnName = "student_name")]
        public string StudentName { set; get; }

        [SugarColumn(ColumnName = "nickname")]
        public string Nickname { get; set; }

        [SugarColumn(ColumnName = "address")]
        public string Address { get; set; }

        [SugarColumn(ColumnName = "lat")]
        public string Latitude { get; set; }

        [SugarColumn(ColumnName = "lng")]
        public string Longitude { get; set; }

        [SugarColumn(ColumnName = "contact")]
        public string Contact { get; set; }

        [SugarColumn(ColumnName = "contact_no")]
        public string ContactNo { get; set; }

        [SugarColumn(ColumnName = "create_at")]
        public DateTime? CreateAt { get; set; } = DateTime.Now;

        [SugarColumn(ColumnName = "update_at")]
        public DateTime? UpdateAt { get; set; } = DateTime.Now;

        [SugarColumn(ColumnName = "age")]
        public int Age { get; set; }

        [SugarColumn(ColumnName = "update_age_at")]
        public DateTime UpdateAgeAt { get; set; }
    }
}
